<template>
  <div class="hireDefault">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="photo" align="center" label="图片">
        <template slot-scope="scope">
          <img :src="scope.row.photo" style="width:100px;height:80px;" alt>
        </template>
      </el-table-column>
      <el-table-column prop="name" align="center" label="户型" />
      <el-table-column prop="phone" align="center" label="联系方式" />
      <el-table-column prop="size" align="center" label="大小" />
      <el-table-column prop="area" align="center" label="地址" />
      <el-table-column prop="money" align="center" label="租金" />
    </el-table>
    <el-table :data="defaultData" border style="width: 100%;margin-top:50px;">
      <el-table-column prop="name" align="center" label="单价">
        <span>100元/m²</span>
      </el-table-column>
      <el-table-column prop="phone" align="center" label="朝向">
        <span>坐北朝南</span>
      </el-table-column>
      <el-table-column prop="size" align="center" label="楼型">
        <span>高层</span>
      </el-table-column>
      <el-table-column prop="area" align="center" label="装修">
        <span>精装</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="用途">
        <span>住户</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="挂牌">
        <span>2019-06-03</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="楼层">
        <span>6楼</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="电梯">
        <span>有</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="权属">
        <span>商品房</span>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    }
  },
  mounted() {
    var data = this.$route.params.data
    if (data == undefined) {
      this.goback()
    } else {
      this.defaultData.push(data)
    }
  },
  methods: {
    // 返回
    goback() {
      this.$router.push({ path: '/ambitus/hire' })
    }
  }
}
</script>
<style lang="scss" scoped>
.hireDefault {
  margin-top: 55px;
}
</style>
